package com.yuxl.centent.document.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @Author : yuxl
 * @create 2025/9/8 下午7:56
 */
@Schema(description = "内容-文档")
@Table("content_document")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ContentDocument {

    @Id
    @Schema(description = "文档ID")
    private Long id;
    @Schema(description = "文档路径")
    private String path;
    @Schema(description = "文档标题")
    private String title;
    @Schema(description = "文档备注")
    private String description;
    @Schema(description = "文档内容")
    private String text;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
